From: Eli Zaretskii Date: Sun, 25 Apr 2010 17:06:41 +0000 (+0300) Subject: Fix crash with bidi display on the last empty line (bug#6030). X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~8012 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=1d253f3c4d2ac75c91e38dea35ac39bb8e447ff2;p=emacs.git Fix crash with bidi display on the last empty line (bug#6030). xdisp.c (display_line): Don't assume 2nd call to get_next_display_element cannot return zero. (Bug#6030) Move code that bidi-iterates out of display property to a separate function. xdisp.c (iterate_out_of_display_property): New function, body from pop_it. (pop_it): Use it. --- 1d253f3c4d2ac75c91e38dea35ac39bb8e447ff2 diff --cc src/ChangeLog index 3354f2915d5,77551903cc2..dd1a06ac324 --- a/src/ChangeLog +++ b/src/ChangeLog @@@ -1,10 -1,10 +1,17 @@@ + 2010-04-25 Eli Zaretskii + - * xdisp.c (display_line): Fix crash with bidi display on the last - empty line. (Bug#6030) ++ * xdisp.c (display_line): Don't assume 2nd call to ++ get_next_display_element cannot return zero. (Bug#6030) + (iterate_out_of_display_property): New function, body from pop_it. + (pop_it): Use it. + +2010-04-24 Glenn Morris + + * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]: + For clarity, revert to using fixed /usr/lib rather than $CRT_DIR. + (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case, + since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu. + 2010-04-24 Eli Zaretskii * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and